package com.venusj.demo.controller;

import com.venusj.demo.annotations.MyAutoWired;
import com.venusj.demo.annotations.MyController;
import com.venusj.demo.annotations.MyRequestMapping;
import com.venusj.demo.service.IDemoService;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author zhangjh
 * @date 2020/10/21
 * @desc
 */
@MyController
@MyRequestMapping("/demo")
public class DemoController {

    @MyAutoWired
    private IDemoService iDemoService;

    @MyRequestMapping("/query")
    public String query(HttpServletRequest request, HttpServletResponse response, String name)
    {
        return iDemoService.say(name);
    }
}
